package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AlwtDayreportMapper;
import com.ruoyi.system.domain.AlwtDayreport;
import com.ruoyi.system.service.IAlwtDayreportService;
import com.ruoyi.common.core.text.Convert;

/**
 * 日报格Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-17
 */
@Service
public class AlwtDayreportServiceImpl implements IAlwtDayreportService 
{
    @Autowired
    private AlwtDayreportMapper alwtDayreportMapper;

    /**
     * 查询日报格
     * 
     * @param dayId 日报格主键
     * @return 日报格
     */
    @Override
    public AlwtDayreport selectAlwtDayreportByDayId(Long dayId)
    {
        return alwtDayreportMapper.selectAlwtDayreportByDayId(dayId);
    }

    /**
     * 查询日报格列表
     * 
     * @param alwtDayreport 日报格
     * @return 日报格
     */
    @Override
    public List<AlwtDayreport> selectAlwtDayreportList(AlwtDayreport alwtDayreport)
    {
        return alwtDayreportMapper.selectAlwtDayreportList(alwtDayreport);
    }

    /**
     * 新增日报格
     * 
     * @param alwtDayreport 日报格
     * @return 结果
     */
    @Override
    public int insertAlwtDayreport(AlwtDayreport alwtDayreport)
    {
        return alwtDayreportMapper.insertAlwtDayreport(alwtDayreport);
    }

    /**
     * 修改日报格
     * 
     * @param alwtDayreport 日报格
     * @return 结果
     */
    @Override
    public int updateAlwtDayreport(AlwtDayreport alwtDayreport)
    {
        return alwtDayreportMapper.updateAlwtDayreport(alwtDayreport);
    }

    /**
     * 批量删除日报格
     * 
     * @param dayIds 需要删除的日报格主键
     * @return 结果
     */
    @Override
    public int deleteAlwtDayreportByDayIds(String dayIds)
    {
        return alwtDayreportMapper.deleteAlwtDayreportByDayIds(Convert.toStrArray(dayIds));
    }

    /**
     * 删除日报格信息
     * 
     * @param dayId 日报格主键
     * @return 结果
     */
    @Override
    public int deleteAlwtDayreportByDayId(Long dayId)
    {
        return alwtDayreportMapper.deleteAlwtDayreportByDayId(dayId);
    }
}
